package com.googlecode.connectlet.crypto.rsa.provider;

import java.security.interfaces.RSAPrivateCrtKey;
import java.security.interfaces.RSAPublicKey;

import com.googlecode.connectlet.crypto.digest.SignatureStream;
import com.googlecode.connectlet.crypto.rsa.MD5RSAStream;

public final class MD5withRSA extends RSASignature {
	@Override
	protected SignatureStream getSignStream(RSAPrivateCrtKey privateKey) {
		return new MD5RSAStream(privateKey);
	}

	@Override
	protected SignatureStream getVerifyStream(RSAPublicKey publicKey) {
		return new MD5RSAStream(publicKey);
	}
}